package cn.bdqn.sms.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zhangpengxiang
 * @description 菜单
 * @date 2024/11/22
 */
@Data
@TableName("sys_menu")
public class SysMenu extends BaseEntity{
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    //菜单id
    private Long menuId;
    //菜单名称
    private String menuName;
    //菜单地址
    private String menuUrl;
    //路由名称
    private String Component;
    //父级菜单id
    private Long parentMenuId;
    //菜单类型
    private String menuType;
    //菜单权限代码
    private String permission_code;
    //是否显示
    private int isShow;
    //菜单排序序号
    private int sort;
    //子菜单
    private List<SysMenu> children = new ArrayList<>();
}
